package srzy.socket

abstract class Protocol {

  def getHeadLength: Int

  def getBodyLength(msgHead: Array[Byte]): Int

}

//object DCCProtocol extends Protocol {
//
//  override def getBodyLength(msgHead: Array[Byte]): Int = 5
//
//  override def getHeadLength: Int = 5
//
//}
//
//object RBProtocol extends Protocol {
//
//  override def getBodyLength(msgHead: Array[Byte]): Int = 5
//
//  override def getHeadLength: Int = 5
//
//}